pp108 : Logical Functions

Logical Functions

This topic describes the various logical functions available in the default Process Platform XSLT function library.

Logical functions allow you to compare data and pass the result of the comparison to the target. Refer to Transforming Data using XSLT Functions, for more information on the procedure to transform the data using XSLT functions.
The various logical functions supported by Cordys, their functionality, and parameters that have to be specified are described in the following table:

Remember: While using integers as valid inputs, convert the source data into a numeric format using the Numeric function.

Table 1. Logical Functions

Logical Function

Description

Parameters

Greater-Than

Compares if a numeric expression is greater than another numeric expression, and returns a specified value based on the result of the expression

The inputs to this function block are as follows:

1. Number1 - First integer value for comparison is specified in this parameter
2. Number2 - Second integer value to be compared is specified in this parameter
3. If True - This parameter specifies the value to be returned if the first integer value is greater than the second integer value
4. If False - This parameter specifies the value to be returned if the first integer value is not greater than the second integer value

Greater -Than-or-Equal-To

Compares if a numeric expression is greater-than-or-equal-to another numeric expression, and returns a specified value based on the result of the expression

The inputs to this function block are as follows:

1. Number1 - First integer value for comparison is specified in this parameter
2. Number2 - Second integer value to be compared is specified in this parameter
3. If True - This parameter specifies the value to be returned if the first integer value is greater than or equal to the second integer value
4. If False - This parameter specifies the value to be returned if the first integer value is not greater than or equal to the second integer value

Less-Than

Compares if a numeric expression is less-than another numeric expression, and returns a specified value based on the result of the expression

The inputs to this function block are as follows :

1. Number1 - First integer value for comparison is specified in this parameter
2. Number2 - Second integer value to be compared is specified in this parameter
3. If True - This parameter specifies the value to be returned if the first integer value is less than the second integer value
4. If False - This parameter specifies the value to be returned if the first integer value is not than the second integer value

Less-Than-or-Equal-To

Compares if a numeric expression is less-than-or-equal-to another numeric expression, and returns a specified value based on the result of the expression

The inputs to this function block are as follows:

1. Number1 - First integer value for comparison is specified in this parameter
2. Number2 - Second integer value to be compared is specified in this parameter
3. If True - This parameter specifies the value to be returned if the first integer value is less than or equal to the second integer value
4. If False - This parameter specifies the value to be returned if the first integer value is not less than or equal to the second integer value

Equal-To ( Integer Comparison)

Compares if a numeric expression is equal-to another numeric expression, and returns a specified value based on the result of the expression

The inputs to this function block are as follows:

1. Number1 - First integer value for comparison is specified in this parameter
2. Number2 - Second integer value to be compared is specified in this parameter
3. If True - This parameter specifies the value to be returned if the first integer value is equal to the second integer value
4. If False - This parameter specifies the value to be returned if the first integer value is not equal to the second integer value

Equal-To ( String Comparison)

Compares two strings for equality, and returns a specified value based on the result of the expression

The inputs to this function block are as follows:

1. String1 - First string for comparison is specified in this parameter
2. String2 - Second string to be compared is specified in this parameter
3. If True - This parameter specifies the value to be returned if the first string is equal-to the second string
4. If False - This parameter specifies the value to be returned if the first string is not equal to the second string